﻿
using System;

//Nhibernate Code Generation Template 1.0
//author:MythXin
//blog:www.cnblogs.com/MythXin
//Entity Code Generation Template
namespace Cms.Model
{
    public enum WebPartType
    {
        None=-1,//无
        Text = 0,//文本
        Urls = 1,//地址列表
        Form = 2//表单
    }

    public enum DataSouceType
    {
        None=-1,//无数据源
        Text = 0,//文本数据源
        Sql = 1,//SQL 数据源
        Hql = 2,//HQL 数据源
        Xml = 3,//XML 数据源
        Rss=4,//RSS
        RssLink=5
    }

    //webpart表
    public class Sys_Webpart
    {
        /// <summary>
        /// ID
        /// </summary>
        public virtual string Id { get; set; }
        /// <summary>
        /// ALIAS
        /// </summary>
        public virtual string Alias { get; set; }
        /// <summary>
        /// TITLE
        /// </summary>
        public virtual string Title { get; set; }
        /// <summary>
        /// WEBPART_TYPE
        /// </summary>
        public virtual WebPartType Webpart_Type { get; set; }
        /// <summary>
        /// ALLOW_MAX
        /// </summary>
        public virtual bool Allow_Max { get; set; }
        /// <summary>
        /// ALLOW_MIN
        /// </summary>
        public virtual bool Allow_Min { get; set; }
        /// <summary>
        /// ALLOW_CLOSE
        /// </summary>
        public virtual bool Allow_Close { get; set; }
        /// <summary>
        /// ALLOW_MOVE
        /// </summary>
        public virtual bool Allow_Move { get; set; }
        /// <summary>
        /// HEIGHT
        /// </summary>
        public virtual int? Height { get; set; }
        /// <summary>
        /// WIDTH
        /// </summary>
        public virtual int? Width { get; set; }
        /// <summary>
        /// SERVERSCRIPT
        /// </summary>
        public virtual string Serverscript { get; set; }
        /// <summary>
        /// SCRIPTTYPE
        /// </summary>
        public virtual DataSouceType Scripttype { get; set; }
        /// <summary>
        /// STYLE
        /// </summary>
        public virtual string Style { get; set; }
        /// <summary>
        /// TEMPLATE
        /// </summary>
        public virtual string Template { get; set; }
        /// <summary>
        /// DISPLAYTYPE
        /// </summary>
        public virtual string Displaytype { get; set; }
        /// <summary>
        /// CUSTOMDISPLAYTYPE
        /// </summary>
        public virtual string Customdisplaytype { get; set; }
        /// <summary>
        /// DISPLAYOPTIONS
        /// </summary>
        public virtual string Displayoptions { get; set; }
        /// <summary>
        /// 自定义属性
        /// </summary>
        public virtual string CustomAttrs { get; set; }
    }
}
